Struct isotope_parser::ast::Lambda [−][src]
pub struct Lambda { pub param_name: Option<SmolStr>, pub param_ty: Option<Arc<Expr>>, pub result: Arc<Expr>, }
Expand description
A lambda function
Fields
param_name: Option<SmolStr>
The parameter name of this lambda function, if any
param_ty: Option<Arc<Expr>>
The parameter type of this lambda function, if any
result: Arc<Expr>
The result of this lambda function
Implementations
pub fn pretty<'a, D, A>(&'a self, allocator: &'a D) -> DocBuilder<'a, D, A> where
D: DocAllocator<'a, A>,
D::Doc: Clone,
A: Clone,
[src]
pub fn pretty<'a, D, A>(&'a self, allocator: &'a D) -> DocBuilder<'a, D, A> where
D: DocAllocator<'a, A>,
D::Doc: Clone,
A: Clone,
[src]Prettyprint a lambda function
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Lambda
impl UnwindSafe for Lambda
Blanket Implementations
Mutably borrows from an owned value. Read more